package com.wm.exam.service.impl;

import com.wm.exam.dao.ScopeMapper;
import com.wm.exam.pojo.Scope;
import com.wm.exam.service.ScopeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScopeServiceImpl implements ScopeService {
    @Autowired
    private ScopeMapper scopeMapper;

    /**
     * 查询分数值
     * @return
     */
    @Override
    public List<Scope> getByStatus() {

        return scopeMapper.getByStatus();
    }

    /**
     * 查询出来分数
     * @param scope
     * @return
     */
    @Override
    public Scope getByScopeValue(String scope) {
        return scopeMapper.getByScopeValue(scope);
    }
}
